package com.sqx.modules.search.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.search.entity.SearchRecord;

/**
 * 搜索记录(SearchRecord)表服务接口
 *
 * @author makejava
 * @since 2024-05-28 09:33:02
 */
public interface SearchRecordService extends IService<SearchRecord>{

    /**
     * 保存搜索记录
     * @param content
     * @param userId
     * @return
     */
    void saveRecordInfo(String content,Long userId);

    /**
     * 分页查询搜索词分组搜索记录
     * @param params
     * @return
     */
    Result queryRcordPage(JSONObject params);

    /**
     * 搜索记录
     * @param params
     * @return
     */
    Result querySearchRecord(JSONObject params);

}
